package com.software.chemistry.service;

import com.software.chemistry.entity.Message;
import com.software.chemistry.entity.MsgList;

import java.util.List;
//沟通repostriory层和Controller层

public interface MessageService {
    boolean deleteMessageByReceiverId(String ReceiverId);
    boolean deleteMessageByReceiverIdAndType(String ReceiverId, long Type) ;

    Message createMessage(Message message);

    List<MsgList> findMessagesByReceiverIdAndType(String receiverId, long type);

    void changeMessages(String receiverId, String senderId);

    List<Message> findMessagesByReceiverIdAndSenderIdAndType(String receiverId, String senderId, long type);
}
